package com.terabits.smartriver.mapper;

import com.terabits.smartriver.meta.dto.TopicDTO;
import com.terabits.smartriver.meta.po.InspectionTopic;
import com.terabits.smartriver.util.PageData;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface InspectionTopicMapper extends Mapper<InspectionTopic> {
    /**
     * 查找 点检题
     *
     * @return
     */
    List<TopicDTO> selectTopic(@Param("pd") PageData pageData);

    /**
     * 添加[批量] 点检题
     *
     * @param userId
     * @param topics
     * @return
     */
    int insertTopics(@Param("userId") Integer userId, @Param("topics") List<InspectionTopic> topics);


}